Articles by Himanshu Arora
-
Linux Csplit Command Explained for Beginners (6 Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 2 • Updated: Jul 29, 2024While working on the command line in Linux, you may find yourself in situations where-in you need to split a file into multiple parts. If you are already looking for a way to do this, or simply want to know how this can be done, you'll be glad to know there exists a tool - dubbed csplit - that's built for this purpose.
-
Linux hostname Command Tutorial for Beginners (5 Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 0 • Updated: Jul 18, 2024The Linux hostname command is a utility used to display or set the system's hostname. A hostname is a unique identifier assigned to a device on a network, functioning much like a person's name in a social context.
-
Linux sha1sum Command Tutorial for Beginners (with Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 0 • Updated: Jul 09, 2024Linux command line offers several tools for checking and verifying a file's integrity. One such tool is sha1sum, which we will be discussing here in this tutorial using some easy to understand examples.
-
-
Compute CRC-Checksums on Linux with cksum Command
Author: Himanshu Arora • Tags: linux, shell • Comments: 2 • Updated: Jul 09, 2024The cksum command in Linux is a utility that generates a CRC (Cyclic Redundancy Check) checksum and byte count for a given file. It is used to verify the integrity of files by comparing the checksum values before and after transmission or storage.
-
Linux chattr Command Tutorial for Beginners (5 Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 2 • Updated: Jul 08, 2024Often a Linux computer is used by different users. So there is a possibility that these users access a common group of files. This opens the door to problems like accidental deletion or editing of important files, which you as an administrator definitely don't want. Fortunately, there is a command called chattr that is designed for just such cases.
-
Linux basename Command Tutorial for Beginners (with Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 0 • Updated: Jun 28, 2024Sometimes, while working on the command line (especially when dealing with shell scripts), you might be interested in only the filename, but what's available to you is the complete path of the file. So, the requirement is to strip the directory component of the path. You'll be glad to know there exists a command - basename - that does this job.
-
Linux tty Command Tutorial for Beginners (with Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 0 • Updated: Jun 27, 2024In Linux, everything is a file. Even any hardware device connected to the system is represented as a special file. So it shouldn't come as a surprise that a terminal is also represented as a file. There exists a command dubbed tty that displays terminal related information.
-
Linux chsh Command Tutorial for Beginners (5 Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 1 • Updated: Jun 20, 2024The bash shell is one of the most widely used login shells in Linux. But there exist other shells as well, and you can use them for your command line work (until of course there's a specific requirement for your work). In this article, we will discuss a tool - dubbed chsh - that lets you switch to a login shell different from your current shell.
-
Linux OD Command Tutorial for Beginners (6 Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 0 • Updated: Jun 15, 2024There may be times when while working on the Linux command line, you might want to display/convert content in a file in/to a form other than its original form, like decimal or octal. Gladly, there's an inbuilt command line tool that you can use in situations like these.
-
Linux readlink and realpath Command Tutorial for Beginners (with Examples)
Author: Himanshu Arora • Tags: linux, shell • Comments: 1 • Updated: Jun 06, 2024In this tutorial, we will discuss the basics of realpath and readlink commands that are similar (if not same) in the sense that they display resolved symbolic links in output.